<?php
/**
 * @Author: Wang Chunsheng 2192138785@qq.com
 * @Date:   2020-04-09 15:23:16
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2020-05-10 22:53:20
 */
 

use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\DdGoods */

$this->title = $model->goods_id;
$this->params['breadcrumbs'][] = ['label' => '商品', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<?= $this->render('_tab'); ?>

<div class=" firetech-main">
<div class="dd-goods-view">

    <div class="panel panel-default">
        <div class="box-body">

    <p>
        <?= Html::a('更新', ['update', 'id' => $model->goods_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('删除', ['delete', 'id' => $model->goods_id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'goods_id',
            'goods_name',
            'category_id',
            'spec_type',
            'deduct_stock_type',
            'content:ntext',
            'sales_initial',
            'sales_actual',
            'goods_sort',
            'delivery_id',
            'goods_status',
            'is_delete',
            'wxapp_id',
            'create_time:datetime',
            'update_time:datetime',
        ],
    ]) ?>

</div>
    </div>
</div>
</div>